package com.ruoyi.personnel.management.staff.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * staff_leave_record
 * 员工离职记录
 * @author Drj 2021/6/28
 */
public class StaffLeaveRecord extends BaseEntity {

    /**
     * 自增编号
     */
    private Integer leaveNum;
    /**
     * 员工编号
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private String staffId;
    /**
     * 员工名称
     */
    private String staffName;
    /**
     * 员工职位编号
     */
    private Long postId;
    /**
     * 员工职位名称
     */
    private String postName;
    /**
     * 部门编号
     */
    private Long deptId;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 离职时间
     */
    private java.sql.Timestamp staffLeaveDate;
    /**
     * 创建时间
     */
    private java.sql.Timestamp createTime;
    /**
     * 备注
     */
    private String remark;

    public StaffLeaveRecord() {
    }

    public StaffLeaveRecord(Staff staff) {
        this.staffId = staff.getStaffId();
    }

    public Integer getLeaveNum() {
        return leaveNum;
    }

    public void setLeaveNum(Integer leaveNum) {
        this.leaveNum = leaveNum;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public Long getPositionInfoId() {
        return postId;
    }

    public void setPositionInfoId(Long positionInfoId) {
        this.postId = positionInfoId;
    }

    public String getPositionInfoName() {
        return postName;
    }

    public void setPositionInfoName(String positionInfoName) {
        this.postName = positionInfoName;
    }

    public Long getDepartmentId() {
        return deptId;
    }

    public void setDepartmentId(Long departmentId) {
        this.deptId = departmentId;
    }

    public String getDepartmentName() {
        return deptName;
    }

    public void setDepartmentName(String departmentName) {
        this.deptName = departmentName;
    }

    public Timestamp getStaffLeaveDate() {
        return staffLeaveDate;
    }

    public void setStaffLeaveDate(Timestamp staffLeaveDate) {
        this.staffLeaveDate = staffLeaveDate;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
